package cn.lliiooll.demo.command;

import net.mamoe.mirai.console.command.BlockingCommand;
import net.mamoe.mirai.console.command.CommandSender;
import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.List;

public class DemoCommand extends BlockingCommand {
    public DemoCommand() {
        super("指令", new ArrayList<String>() {{
            add("别称1");
            add("别称2");
        }}, "简介", "用法");
    }

    @Override
    public boolean onCommandBlocking(@NotNull CommandSender commandSender, @NotNull List<String> list) {
        // 在此处理
        return true;// 返回false则会输出用法
    }
}
